import request from '@/utils/request';
import type {IProduct} from '@/typings/interface';
import type {IPageRequest} from '@/typings/api';

/**
 * 获取搜索的结果
 */
export function getSearchResults(req: IPageRequest & { title: string }) {
    return request<IProduct, true>('/search/v1/page', {
        data: req,
        method: 'POST',
    });
}

